package com.xiaomengkuan.product.incrementer;

import com.xiaomengkuan.common.incrementer.IdGenerator;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-02-10 1:16 下午, File Encoding: utf8 --
 */
@Primary
@Component
public class ProductIdGenerator extends IdGenerator {
    @Override
    public String nextUUID(Object entity) {
        return super.nextUUID(entity).replace("ysj", "scp");
    }
}
